import {
    getAsyncPage
} from '../utils/publicApi.js'
import { defineAsyncComponent } from 'vue'
// const Home = getAsyncPage('../views/TodoList.vue');
// const Home = ()=>import("../views/TodoList.vue");
const Home = defineAsyncComponent(() => import("../views/TodoList.vue"));
// const _import = (path) => defineAsyncComponent(() => import(`../views/${path}.vue`));
const Sales = getAsyncPage('../views/Sales.vue')
const Move = getAsyncPage('../views/Move.vue')
const RelativeApi = getAsyncPage('../views/RelativeApi.vue')
const Gdp = getAsyncPage('../views/Gdp.vue')
export default [{
        path: "/",
        name: "Home",
        component:Home
    },
    {
        path: "/sales",
        name: "Sales",
        component: Sales
    },
    {
        path: "/move",
        name: "Move",
        component: Move
    },
    {
        path: "/relativeApi",
        name: "RelativeApi",
        component: RelativeApi
    },
    {
        path: "/gdp",
        name: "GDP",
        component: Gdp
    }
]